﻿using System;

namespace DbMetadata
{
    /// <summary>
    /// Provides metadata about a foreign key column.
    /// </summary>
    [Serializable]
    public class DbForeignKeyColumnInfo
    {
        /// <summary>
        /// Gets or sets the <see cref="DbForeignKeyInfo"/> that 
        /// represents the foreign key that this foreign key column belongs to.
        /// </summary>        
        public DbForeignKeyInfo ForeignKey { get; set; }

        /// <summary>
        /// Gets or sets the <see cref="DbColumnInfo"/> that represents 
        /// the column in the foreign table.
        /// </summary>
        public DbColumnInfo ForeignColumn { get; set; }

        /// <summary>
        /// Gets or sets the <see cref="DbColumnInfo"/> that represents 
        /// the column in the primary table.
        /// </summary>
        public DbColumnInfo PrimaryColumn { get; set; }
    }
}
